<?php
// +----------------------------------------------------------------------------------------------+
// | Projekt       Lepa                                                                           |
// | Dateiname     index.php                                                                      |
// | Plattform     PHP 5.1 / Apache 2.0                                                           |
// |                                                                                              |
// | Autor         Daniel Brun     (dbru)                                                         |
// | Datum         12.03.2009                                                                     |
// |                                                                                              |
// | Beschreibung  Index-Seite von lepa, stellt die Hauptseite zusammen                           |
// |                                                                                              |
// | Version  Datum       Beschreibung                                                  Autor     |
// | -------  ----------  ------------                                                  -----     |
// | V1.00    2009-03-12  erstellt                                                      dbru      |
// | V2.00    2009-03-12  implementiert (Layout)                                        pdef      |
// | V3.00    2009-03-12  implementiert                                                 pdef      |
// | V4.00    2009-06-18  fertig gestellt                                               dbru      |
// |                                                                                              |
// +----------------------------------------------------------------------------------------------+
$step = '';
include $step.'includes/defaults.inc.php';
include $step.'functions/util.func.php';
include $step.'functions/html.func.php';
include $step.'functions/db.func.php';

HTMLindexheader("Lepa - Lernplattform", $step."css/style.css");

// Eingabe
$loggedIn = isset($_SESSION['logged_in']) ? $_SESSION['logged_in'] : false;

// Verarbeitung

// Ausgabe
echo "<div id='main'>\n";
echo "<div align=center>\n";
echo "<div id='content'>\n";

include './php/module/header.mod.inc.php';
include './php/module/navi.mod.inc.php';

echo "<div id='content_top'></div>\n";
echo "<div id='content_main'>\n";
echo "<div id='content_text'>\n";

echo "<table>\n";
echo "<tr valign='top'>\n";
echo "<td width='200'>\n";

if( $loggedIn == false){
	include './php/module/login.mod.inc.php';
} else {
	include './php/module/logout.mod.inc.php';
}

include './php/module/topDownloads.mod.inc.php';

include './php/module/topRated.mod.inc.php';

echo "</td>\n";
echo "<td width='650' style='padding-left: 7px;'>\n";
include './php/module/frame.mod.inc.php';
echo "</td>\n";

echo "<td width='200' style='padding-right: 4px;'>\n";
include './php/module/search.mod.inc.php';

if($loggedIn == true){
	include './php/module/admin.mod.inc.php';
}
echo "</td>\n";
echo "</tr>\n";

echo "</table>\n";

echo "</div>\n";
echo "</div>\n";
echo "<div id='content_bottom'></div>\n";
echo "</div>\n";

include './php/module/footer.mod.inc.php';

echo "</div>\n";
echo "</div>\n";

HTMLfooter();
?>